package com.xueyi.aixihu.reqeust;

import com.xueyi.aixihu.reqeust.base.PageLimitReq;
import lombok.Data;
import org.springframework.util.StringUtils;

import javax.validation.constraints.NotNull;

/**
 * @author hxs
 * @createDate 2023/6/28 15:35
 * @description 查询报表列表
 */
@Data
public class FindReportFormListReq extends PageLimitReq {

    /**
     * 关键字
     */
    private String keyword;

    /**
     * 地区id
     */
    private Integer areaId;

    /**
     * 报表类型
     */
    @NotNull(message = "参数异常")
    private Integer reportType;

    /**
     * 报表的状态
     */
//    private String currentStatus;
    private Integer currentStatus;

    private String currentStatusStr;

    /**
     * 类型
     */
    private Integer systemTypeId;

    private String month;

    public void format() {
        countStartIndex();
        keyword = StringUtils.hasLength(keyword) ? keyword.trim() : null;
        month = StringUtils.hasLength(month) ? month.trim() : null;
//        currentStatus = StringUtils.hasLength(currentStatus) ? currentStatus.trim() : null;
    }
}
